Northwoods.GoWPF 2.2.4 Assembly
MakeNodeKeyUnique Method (GraphLinksModel<NodeType,NodeKey,PortKey,LinkType>)

This method is called when a duplicate key has been found.
Syntax
Protected Overridable Function MakeNodeKeyUnique( _
   ByVal nodedata As NodeType _
) As Boolean
protected virtual bool MakeNodeKeyUnique( 
   NodeType nodedata
)

Parameters

nodedata

Return Value

true to accept the data as a node after having made the key unique in the model; false to ignore this data.
Remarks

This is used for model discovery. When a node data is added to the NodesSource collection, DoNodeAdded checks for a duplicate key value. If it is a duplicate key, this method is called to either modify the node data to have a unique key, or to return false to avoid adding the data to this model. (However, the duplicate key node data will still be in the NodesSource collection.)

This method is frequently overridden to implement the desired policy for your particular application model.

When the user copies selected nodes into a diagram, it is likely that this method will be called.

Requirements
See Also

Reference

GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class
GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Members

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback